//
//  LBBannerCell.m
//  LBHorizontalLoopView_Example
//
//  Created by liubo on 2021/8/31.
//  Copyright © 2021 liuboliu. All rights reserved.
//

#import "LBBannerCell.h"
#import <Masonry/Masonry.h>

@interface LBBannerCell()

@property (nonatomic, strong) UIImageView *imgView;

@end

@implementation LBBannerCell

- (void)setUpUI
{
    [self addSubview:self.imgView];
}

- (void)setUpConstraints
{
    [self.imgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(UIEdgeInsetsZero);
    }];
}

#pragma mark - lazy load
- (UIImageView *)imgView
{
    if (!_imgView) {
        _imgView = [[UIImageView alloc] init];
        _imgView.image = [UIImage imageNamed:@"1"];
    }
    return _imgView;
}

@end
